﻿<div class="span-14 last details" align="center" style="width:100% !important; height:auto;"> 
                <fieldset class="frm-box" style="margin-bottom:20px;">
                <p style="font-family:Tahoma, Geneva, sans-serif; font-size:18px; color:#0C0;font-weight:bold;">Your channel configuration</p>
                    <table width="100%" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif !important;">
                        <tbody>
						<?php
						if(!empty($settings)):
							foreach($settings as $key=>$value):
						?>
						<tr>
                           

                            <td width="" align="left" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;">
								<?php echo $value->name;?>
							</td>
                            <td width="" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;">
								<?php
								if($value->url != null):
								?>
									<a style="font-family: 'Alef', sans-serif;" href="<?php echo $value->url;?>"><?php echo $value->alias;?></a>
								<?php
								else:
									echo $value->alias;
								endif;
								?>
								
							</td>
                        </tr>
						<?php
							endforeach;
						endif;
						
						
						$channel_link = "http://".Yii::app()->request->serverName."/".$channel->name;
						$channel_statistics = "http://".Yii::app()->request->serverName."/broadcast?id".outStr($channel->id);
						
						$embled_code = "<script>var width = 500; var height = 400; var channel = '{$channel->name}';  var src = 'http://".Yii::app()->request->serverName."/site/emdbed?w=500&h=400&c={$channel->name}';</script>";
						$embled_code.= "<script src='http://".Yii::app()->request->serverName."".baseTheme()."/js/_embedplayer.js'></script>";
						
						?>
						
                        <tr>
                            <td width="" align="left" style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;">Channel Name </td>
                            <td width="&quot;" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;">
							<?php echo $channel->name;?></td>
                        </tr>
                        <tr>
                            <td width="" align="left" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;">Start </td>
                            <td width="" style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;">Click <strong>Start</strong></td>
                        </tr>
                        <tr>
                            <td width="" align="left" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;">Channel link: </td>
                            <td width="" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;">
							<a style="font-family: 'Alef', sans-serif;" target="_blank" href="<?php echo $channel_link;?>">
							<?php echo $channel_link;?></a></td>
                        </tr>
                        <tr>
                            <td width="" align="left" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;">Channel statistics: </td>
                            <td width=""><a style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;" target="_blank" href="<?php echo $channel_statistics;?>">
							
							<?php echo $channel_statistics;?></a></td>
                        </tr>
                    </tbody></table>
                </fieldset> <div class="clear"></div>
            <div class="playerdetails2 frm-box" align="center"style="height:50px">
               <p2><div class="texts" align="left" style="font-family:Tahoma, Geneva, sans-serif; color:#333333;"><strong>Embed Code</strong></div>
			   <input class="embedcode" name="temp" size="170" value="<?php echo $embled_code;?>"></p2>
            </div> 
            <div class="clear"></div>
             
               
                </div>